Skip to content

Use improved obj ptr api - #538

Merged
BartolomeyKant merged 2 commits into
mainfrom
use_improved_obj_ptr_api
Aug 24, 2026
Merged

Use improved obj ptr api#538
BartolomeyKant merged 2 commits into
mainfrom
use_improved_obj_ptr_api

Conversation

@BartolomeyKant

Copy link
Copy Markdown
Collaborator

Refactored ObjPtr to use a type-erased cache owned by ObjectPtrBase, enabling strongly typed persistent references with incomplete types and PIMPL-friendly headers.

Added ProxyPtr to avoid expensive temporary Ptr copies during normal access, while preserving owning conversions when needed. Centralized serialization, loading, visitor handling, and cache ownership in ObjectPtrBase, migrated typed persistent references, removed obsolete casts, and added coverage for ownership, moves, forward declarations, visitors, and serialization.

This also reduced footprint a little.

@BartolomeyKant BartolomeyKant self-assigned this Aug 21, 2026
@BartolomeyKant BartolomeyKant linked an issue Aug 21, 2026 that may be closed by this pull request
@BartolomeyKant
BartolomeyKant merged commit fbad5e1 into main Aug 24, 2026
14 checks passed
@BartolomeyKant
BartolomeyKant deleted the use_improved_obj_ptr_api branch August 24, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move aboject system to aether-objects

2 participants